
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;

public class ParserEasy1 {

    public static void parserEasy(String name) {
        try {
            FileReader fr = new FileReader (name);
            Scanner scan = new Scanner(fr);
            ArrayList<String> word = new ArrayList<String>();
            while (scan.hasNext()) {
                   //System.out.println(scan.next());
                   word.add(scan.next());
            }
            
            show(word);
            fr.close();
            
        } catch (FileNotFoundException e) {
            e.printStackTrace(System.err);
            
        } catch (IOException e) {           
            e.printStackTrace(System.err);
        }

    }
 /*      public static void show(ArrayList<String> array){
            System.out.println("Array : ");
                    for (int i = 0; i < array.size(); i++) {
                    System.out.println(i + " "+ array.get(i) + " ");
                    }
                }
*/
       
       public static void show(ArrayList<String> array){
           System.out.println("Array : ");
                   for (String r : array) {
                   System.out.println(" "+ r + " ");
                   }
               }
    
public static void main(String[] args){
        String path = args[0];
        ParserEasy1.parserEasy(path);

}   

}

